package com.xtaller.lazy.parameter;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version V1.0
 * @author: Taller
 * @date: 2019-04-09
 * @Description: 权限数据对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "权限数据对象")
public class DocAuthorities {
    @ApiModelProperty(value = "权限名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "所属模块 对应sys_module")
    @TableField(value = "moduleId")
    private Long moduleId;

    @ApiModelProperty(value = "对应html")
    @TableField(value = "path")
    private String path;

    @ApiModelProperty(value = "菜单url")
    @TableField(value = "url")
    private String url;

    @ApiModelProperty(value = "授权标识")
    @TableField(value = "flag")
    private String flag;

    @ApiModelProperty(value = "前端事件")
    @TableField(value = "event")
    private String event;

    @ApiModelProperty(value = "按钮颜色")
    @TableField(value = "color")
    private String color;

    @ApiModelProperty(value = "1顶部按钮 2数据侧边按钮 3数据权限")
    @TableField(value = "type")
    private int type;

    @ApiModelProperty(value = "父id")
    @TableField(value = "parentId")
    private Long parentId;

    @ApiModelProperty(value = "0菜单 1操作权限 2数据权限")
    @TableField(value = "isMenu")
    private int isMenu;

    @ApiModelProperty(value = "可见标识 1隐藏 0可见 ")
    @TableField(value = "isHidden")
    private int isHidden;

    @ApiModelProperty(value = "菜单图标")
    @TableField(value = "icon")
    private String icon;

    @ApiModelProperty(value = "排序号")
    @TableField(value = "orderNumber")
    private int orderNumber;
}
